import request from "@/utils/request.js";


/**
 * 开通业务
 * @param {Object} data 
 * @returns 
 */
export const openService = (data) => {
    return request({
        url:'/jy-business/api/store/function/open',
        method:'post',
        data
    })
}




/**
 * 业务列表
 * @param {Object} data 
 * @returns 
 */
export const businessList = (data) => {
    return request({
        url:'/jy-business/api/store/function/selectPage',
        method:'post',
        data
    })
}


/**
 * 业务启用禁用
 * @param {Object} params 
 * @returns 
 */
export const enableOrDisableService = (params) => {
    return request({
        url:'/jy-business/api/store/function/switch',
        method:'get',
        params
    })
}

/**
 * 业务编辑
 * @param {Object} data 
 * @returns 
 */
export const businessEditor = (data) => {
    return request({
        url:'/jy-business/api/store/function/edit',
        method:'post',
        data
    })
}



/**
 * 开通支付业务
 * @param {Object} data 
 * @returns 
 */
export const openPaymentService = (data) => {
    return request({
        url:'/jy-business/api/store/pay/open',
        method:'post',
        data
    })
}


/**
 * 支付业务启用禁用
 * @param {object} params 
 * @returns 
 */
export const enableDisable = (params) => {
    return request({
        url:'/jy-business/api/store/pay/switch',
        method:'get',
        params
    })
}


/**
 * 支付业务列表
 * @param {Object} data 
 * @returns 
 */
export const paymentBusinessList = (data) => {
    return request({
        url:'/jy-business/api/store/pay/listPage',
        method:'post',
        data
    })
}



/**
 * 支付业务启用禁用
 * @param {Object} params 
 * @returns 
 */
export const PaymentSerDisable = (params) => {
    return request({
        url:'/jy-business/api/store/pay/switch',
        method:'get',
        params
    })
}


/**
 * 支付业务编辑
 * @param {Object} data 
 * @returns 
 */
export const editPayService = (data) => {
    return request({
        url:'/jy-business/api/store/pay/edit',
        method:'post',
        data
    })
}